package cn.unuuc.cwl.storage.controller;

import cn.unuuc.cwl.storage.config.ShipAisConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("nacos")
public class NacosController {

    @Resource
    private ShipAisConfig shipAisConfig;

    @GetMapping("config")
    public ShipAisConfig shipAisConfig() {
        return shipAisConfig;
    }
}
